<template>
	<div v-color="color">color</div>
	<!-- // 2.为button标签设置v-throttle自定义指令 -->
	<button @click="sayHello" v - throttle>提交</button>
	<ShowModal v-model="show" title="演示 slot">
		<div>hello world~</div>
	</ShowModal>

	<ShowModal v-model="show" title="演示 content" content="hello world~" />


	<Modal></Modal>
</template>

<script setup>
	import color from "../directives/v-color";
	import ShowModal from "../components/ShowModal.vue";
	import Modal from "../components/Modal.vue";
</script>